<template>
<div class="title">
	<img v-if="back=='true'" class="back" src="../assets/back.png" alt=""  @click="$router.go(-1)">
	{{name}}
	<slot name="left1"></slot>
	<slot name="right1"></slot>
</div>
</template>
<script>
	export default {
	props:["name","back"]
}
</script>
<style>
	.title{
	width: 100%;
	background:#f29004;
	color: white;
	font-size: .18rem;
	line-height: .4rem;
	text-align: center; 
	position: fixed;
	top:0;
	z-index: 9;
}
.back{
	position: absolute;
	left: .1rem;
	height: .2rem;
	top: .1rem;
}
</style>